package a.i.a;

import a.c.e;
import a.c.q;
import a.c.w;

public class d
  implements m
{
  private j a;
  private j.a_[] b;
  private q c;
  public static boolean d;
  public static boolean e;
  
  public d(q paramq)
  {
    this.c = paramq;
    this.a = new j(paramq.k());
    this.b = new j.a_[paramq.k()];
  }
  
  public void a(e parame, int paramInt)
  {
    boolean bool = e;
    j.a_ locala_ = this.a.a(paramInt, parame);
    if (!bool) {
      if (parame.f() < this.b.length)
      {
        this.b[parame.f()] = locala_;
        if ((!bool) && (!d)) {
          return;
        }
      }
    }
    j.a_[] arrayOfa_ = new j.a_[Math.max(2 * this.b.length, parame.f() + 1)];
    System.arraycopy(this.b, 0, arrayOfa_, 0, this.b.length);
    this.b = arrayOfa_;
    this.b[parame.f()] = locala_;
  }
  
  public void b(e parame, int paramInt)
  {
    j.a_ locala_ = this.b[parame.f()];
    this.a.a(locala_, paramInt);
  }
  
  public void c(e parame, int paramInt)
  {
    j.a_ locala_ = this.b[parame.f()];
    this.a.b(locala_, paramInt);
  }
  
  public void d(e parame, int paramInt)
  {
    this.a.c(this.b[parame.f()], paramInt);
  }
  
  public e c()
  {
    j.a_ locala_ = this.a.b();
    this.a.a(locala_);
    e locale = (e)locala_.b;
    this.b[locale.f()] = null;
    return locale;
  }
  
  public e b()
  {
    return (e)this.a.b().b;
  }
  
  public int f()
  {
    return this.a.b().a;
  }
  
  public boolean a(e parame)
  {
    return this.b[parame.f()] != null;
  }
  
  public boolean a()
  {
    return this.a.c();
  }
  
  public int g()
  {
    return this.a.d();
  }
  
  public int b(e parame)
  {
    return this.b[parame.f()].a;
  }
  
  public void c(e parame)
  {
    this.a.a(this.b[parame.f()]);
    this.b[parame.f()] = null;
  }
  
  public void d()
  {
    boolean bool2 = e;
    boolean bool1 = d;
    w localw = this.c.v();
    do
    {
      if (!localw.e()) {
        break;
      }
      if (bool1) {
        break label76;
      }
      if (!bool2)
      {
        if (a(localw.d())) {
          this.b[localw.d().f()] = null;
        }
        localw.f();
      }
    } while (!bool1);
    if (!bool2) {
      label76:
      this.a.a();
    }
  }
  
  public void e() {}
}


/* Location:           E:\idea\
 * Qualified Name:     a.i.a.d
 * JD-Core Version:    0.7.0.1
 */